From 82c5f3e84cd7c56e64ba63e63f1196530e311c1c Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Tue, 13 Dec 2005 22:26:15 +0000 Subject: [PATCH] * Fixed --server override on dumpTextPass.php --- RELEASE-NOTES | 1 + maintenance/dumpTextPass.php | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 183e4f50bc..001a01e53e 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -319,6 +319,7 @@ fully support the editing toolbar, but was found to be too confusing. a raw string to abstract things a level. * (bug 4258) Use ugly urls for ISAPI by default patch by Rob Church +* Fixed --server override on dumpTextPass.php === Caveats === diff --git a/maintenance/dumpTextPass.php b/maintenance/dumpTextPass.php index 6b3b2ab0b8..801ca1b2c7 100644 --- a/maintenance/dumpTextPass.php +++ b/maintenance/dumpTextPass.php @@ -43,7 +43,7 @@ class TextPassDumper extends BackupDumper { $this->startTime = wfTime(); - $this->db =& wfGetDB( DB_SLAVE ); + $this->db =& $this->backupDb(); $this->maxCount = $this->db->selectField( 'page', 'MAX(page_id)', '', 'BackupDumper::dump' ); $this->startTime = wfTime(); @@ -195,6 +195,9 @@ class TextPassDumper extends BackupDumper { $dumper = new TextPassDumper( $argv ); +if( isset( $options['server'] ) ) { + $dumper->server = $options['server']; +} if( true ) { $dumper->dump(); @@ -213,6 +216,7 @@ Options: --quiet Don't dump status reports to stderr. --report=n Report position and speed after every n pages processed. (Default: 100) + --server=h Force reading from MySQL server h END ); } -- 2.20.1